<div id="mws-container" class="clearfix">
  <div class="container">
    <div class="mws-panel grid_8">
      <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">Shipping Service - Management</span> </div>
      <div class="mws-panel-body">
        <div class="dataTables_wrapper">
          <div class="dataTables_length">
            <label>Show
              <select size="1">
                <option value="10" selected="selected">10</option>
                <option value="25">25</option>
                <option value="50">50</option>
                <option value="100">100</option>
              </select>
              entries</label>
          </div>
          <div class="dataTables_filter">
            <label>Search:
              <input type="text">
            </label>
          </div>
          <table class="mws-datatable-fn mws-table">
            <thead>
              <tr>
                <th class="sorting_asc" rowspan="1" colspan="1" style="width: 141px;">Category Name</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 254px;">Category Parent</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 239px;">Category Slug</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 150px;">Category Status</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 91px;">Options</th>
              </tr>
            </thead>
            <?php if(isset($ShippingSp) and ($ShippingSp)): ?>
            <tbody>
            <?php  foreach($ShippingSp as $Shipping){
				
				//pr($Cat);
				//exit;
				?>
              <tr class="gradeA odd">
                <td class=" sorting_1"><?php echo $Shipping['ShippingSp']['name']; ?></td>
                <td>$<?php echo $Shipping['ShippingSp']['price']; ?></td>
                <td><?php echo substr($Shipping['ShippingSp']['description'], 0, 20); ?>...</td>
                <td class="center"><?php if(isset($Shipping['ShippingSp']['status']) and ($Shipping['ShippingSp']['status']==1)){echo "Active";}else{ echo "Deactive";} ?></td>
                <td class="center">
			<?php 
                echo $html->link("Edit", 
                array('action'=>'admin_add_shipping_sp',"ShippingSp", 
                base64_encode($Shipping['ShippingSp']['id'])), array('escape'=>false));  
            ?>
                <?php
					 echo $html->link('Delete',
					 array('controller'=>'Setups', 'action' => 'admin_delete_by_id',
					'ShippingSp',$Shipping['ShippingSp']['id'],'admin_shipping_service_providers'), array('escape' => false,'id'=>'alink'), 'Are you sure?');
			  ?>
                </td>
              </tr>
              <?php } ?>
            </tbody>
            <?php endif; ?>
          </table>
          <div class="dataTables_info">Showing 1 to 10 of 57 entries</div>
          <div class="dataTables_paginate paging_full_numbers">
              <span class="first paginate_button paginate_button_disabled">First</span>
                  <span class="previous paginate_button paginate_button_disabled">Previous</span>
                  <span><span class="paginate_active">1</span>
                  <span class="paginate_button">2</span>
                  <span class="paginate_button">3</span>
                  <span class="paginate_button">4</span>
                  <span class="paginate_button">5</span>
              </span>
              <span class="next paginate_button">Next</span>
              <span class="last paginate_button">Last</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
